<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
   
%>
<c:set var="ctx" value="<%=basePath %>" />

<script type="text/javascript">
	var console = console || {
	    log : function() {
	        return false;
	    },
	    info:function(){
	    	return false;
	    }
	};
	
	// 项目根路径，用于引用资源等
    webRoot = '${ctx}/';
    ctx = '${ctx}';
    
</script>